<?php global $ubi?>
<div class="yd_rp_widget">
	<?php
		$i = 0;
		foreach ($users as $user) {
			$i++;
	?>
		<h4>
			<a href="index.php?view&type=user&userid=<?php echo $user->getUserID()?>">                            	
	        	<img src="<?php echo $ubi['SERVER']['THUMBNAIL_PATH']?>/<?php echo $imgs[$user->getUserID()]?>" class="smallAvatar" />
	        	<?php echo $user->getUserName()?>
	        </a>
        </h4> 		
	<?php
			if ($i % $ubi['SITE']['N_MEMBER_PER_ROW'] == 0) {
	?>
				<div class="clearfix"></div>
	<?php 
			} 
		} 
	?>
</div>
<div>
	<a href="index.php?view&type=member">Xem tất cả...</a>
</div>
<hr />